import { requestToken } from '@/utils/request.js'


// 查询维保记录列表 /maintenance/queryList
export const maintenanceList = (data) => {
    return requestToken('/maintenance/queryList', data)
}

// 新增计划 /maintenance/saveSingle 公共
export const addMaintenance = (data) => {
    return requestToken('/maintenance/saveSingle', data)
}

// 查询维保详情 /maintenance/querySingle
export const maintenanceDetail = (data) => {
    return requestToken('/maintenance/querySingle', data)
}
// 修改维保记录 /maintenance/updateSingle
export const maintenanceUpdate = (data) => {
    return requestToken('/maintenance/updateSingle', data)
}

// 删除维保记录 /maintenance/deleteSingle
export const maintenanceDelete = (data) => {
    return requestToken('/maintenance/deleteSingle', data)
}